package com.hyh.ad.common.core.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hyh.ad.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/*
 * 系统用户实体类

 */

@Data
@ApiModel(value = "SysUser对象", description = "系统用户实体类")
public class SysUser extends BaseEntity {

    /*
     * 主键id
     */
    @TableId(type = IdType.ID_WORKER)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /*
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String username;


    /*
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String password;


    /*
     * 电话号码
     */
    @ApiModelProperty(value = "电话号码")
    private String number;


    /*
     * 头像
     */
    @ApiModelProperty(value = "头像")
    private String avatar;


    /*
     * 电子邮件
     */
    @ApiModelProperty(value = "电子邮件")
    private String email;



    /*
     * 用户状态
     */
    @ApiModelProperty(value = "用户状态 0=正常 1=禁用")
    private String status;

    /*
     * 地址
     */
    @ApiModelProperty(value = "地址")
    private String address;
}
